package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="DispatchStyle"
 *         schema="scsc"
 *     
*/
public class DispatchStyle implements Serializable {

    /** identifier field */
    private String id;

    /** persistent field */
    private String style;

    /** persistent field */
    private String deptCode;

    /** nullable persistent field */
    private String remark;

    /** full constructor */
    public DispatchStyle(String id, String style, String deptCode, String remark) {
        this.id = id;
        this.style = style;
        this.deptCode = deptCode;
        this.remark = remark;
    }

    /** default constructor */
    public DispatchStyle() {
    }

    /** minimal constructor */
    public DispatchStyle(String id, String style, String deptCode) {
        this.id = id;
        this.style = style;
        this.deptCode = deptCode;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="ID"
     *         
     */
    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    /** 
     *            @hibernate.property
     *             column="style"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getStyle() {
        return this.style;
    }

    public void setStyle(String style) {
        this.style = style;
    }

    /** 
     *            @hibernate.property
     *             column="deptCode"
     *             length="9"
     *             not-null="true"
     *         
     */
    public String getDeptCode() {
        return this.deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    /** 
     *            @hibernate.property
     *             column="remark"
     *             length="50"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

}
